from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from google.appengine.ext import db
from html import DropDown, Link
import tables, staticInits, datetime, os



class MainPage(webapp.RequestHandler):
    '''Class for the main page of links to get to the other pages'''
    def get(self):
        self.renderTemplate()
     
    def renderTemplate(self):
        '''Renders the template file index.html'''
        
        templateValues = {        
            'title':'TA4'
        }
        path = os.path.join(os.path.dirname(__file__), 'index.html')
        self.response.out.write(template.render(path, templateValues))
        
application = webapp.WSGIApplication([('/', MainPage)], debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
